home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gGoodOrBadSelection, gFortuneOne, gFortuneSelectionSprite, gFortuneSelected
- if gGoodOrBadSelection = "bad" then
- set tRandom to 1
- repeat while tRandom = 1
- set tFortuneTwo to string(random(83))
- if tFortuneTwo <> gFortuneOne then
- exit repeat
- end if
- end repeat
- set tFortuneText to the number of member ("text" && tFortuneTwo) of castLib the castLibNum of sprite gFortuneSelectionSprite
- else
- set gFortuneOne to string(random(83))
- set tFortuneText to the number of member ("text" && gFortuneOne) of castLib the castLibNum of sprite gFortuneSelectionSprite
- end if
- set the memberNum of sprite gFortuneSelectionSprite to member tFortuneText
- puppetSprite(gFortuneSelectionSprite, 1)
- set gFortuneSelected to 1
- puppetSound("bing")
- play frame "interactive"
- end
-